﻿using Elasticsearch.Net;
using Microsoft.Extensions.Options;
using System;

namespace VisionCloud.Utility.ElasticSearch
{
    /// <summary>
    /// 自定义elasticsearch的连接池
    /// </summary>
    public class ElasticSearchConnectPool : SingleNodeConnectionPool
    {
        public ElasticSearchConnectPool(IOptions<ElasticSearchConfig> options) : base(new Uri(options.Value.ESUrl))
        { }
    }
}